import request from '@/utils/request'
// 以下路径需根据项目实际情况填写
import {
	pathToBase64,
	base64ToPath
} from '@/js_sdk/mmmm-image-tools/index.js'
// api地址
const api = {
	upload: 'app/file/upload',
	getSTS: 'app/file/sts/token',
	fileUrl: 'app/file/object/url',
}
/**
 * 上传文件
 * @param {*} image base64图片
 */
export function upload(file) {
	return request.upload(api.upload,
		file
	)
}